package com.tianqu.tms.core.webservice.weichat.api.impl;

import java.util.List;

import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.dto.MarketCarInfoDto;
import com.tianqu.tms.dto.MarketCarInfoTempDto;
import com.tianqu.tms.dto.MarketCarServiceDto;
import com.tianqu.tms.dto.TmsFragileStickerHistoryDto;
import com.tianqu.tms.dto.TroubleCarInfoDto;

/**
 * Created by wu-xz on 2017/2/10.
 */
public interface CollectCarInfoIDao {
	public List<MarketCarInfoDto> findMarketCarInfoListByInsertTime(MarketCarInfoDto entity) throws TmsDaoException;
	
    public List<MarketCarInfoDto> findMarketCarInfoList(MarketCarInfoDto entity)throws TmsDaoException;

    public void updateMarketCarInfo(MarketCarInfoDto entity)throws TmsDaoException;
    
    public void updateMarketCarInfoPhotoByID(MarketCarInfoDto entity)throws TmsDaoException;
    
    public int findMarketCarInfoServiceBySerial(String serial) throws TmsDaoException ;
    
    public void updateMarketCarService(MarketCarServiceDto entity) throws TmsDaoException;
    
    public void insertMarketCarInfoService(MarketCarServiceDto entity) throws TmsDaoException;
    
    public int findMarketCarInfoTempCheckStatusBySerial(String serial) throws TmsDaoException;
    
    public void insertMarketCarInfoTemp(MarketCarInfoTempDto entity) throws TmsDaoException;
    
    public int findMarketCarInfoCountBySerial(String serial) throws TmsDaoException;
    
    public void insertMarketCarInfo(MarketCarInfoDto entity) throws TmsDaoException;
    
    public void updateSyncMarketCarInfo(MarketCarInfoDto entity) throws TmsDaoException;
    
    public void updateMarketCarInfoByID(MarketCarInfoDto entity) throws TmsDaoException;

    public MarketCarInfoDto findMarketCarInfoListByLicensePlate(String licensePlate) throws TmsDaoException;
    
    public MarketCarServiceDto findMarketCarServiceBySerial(String serial) throws TmsDaoException;
    
    public void updateMarketCarInfoService(MarketCarServiceDto entity) throws TmsDaoException;
    
    public MarketCarInfoDto findMarketCarInfoListByVinAll(String vin) throws TmsDaoException;

    /**
     * createby liudh
     * @param serial
     * @Date
     * @return
     * @throws TmsDaoException
     */
    MarketCarInfoDto findMarketCarInfoBySerial(String serial)throws TmsDaoException ;
    
    public void updateMarketCarInfoAttestStatus(MarketCarInfoDto entity) throws TmsDaoException ;
    
    public void updateMarketCarInfoTempLicensePlate(MarketCarInfoDto entity) throws TmsDaoException ;
    
    public int findTroubleCarInfoByVin(String vin) throws TmsDaoException;
    
    public void insertTroubleCarInfo(TroubleCarInfoDto entity) throws TmsDaoException;
    
    public void updateTroubleCarInfo(TroubleCarInfoDto entity) throws TmsDaoException;
    
    public void deleteTroubleCarInfo(TroubleCarInfoDto entity) throws TmsDaoException;
    
    public void insertFragileStickerHistory(TmsFragileStickerHistoryDto dto) throws TmsDaoException;
}
